﻿namespace SQLStore
{
    using Models;
    using System.Data.Entity.ModelConfiguration;
    public class DictionaryMap :EntityTypeConfiguration<Dictionary>
    {
        public DictionaryMap()
        {
            ToTable("Dictionary");

            HasKey(t => t.Id);

            Property(t => t.Name)
                .HasColumnName("Name")
                .HasMaxLength(512);

            Property(t => t.Url)
                .HasColumnName("Url")
                .HasMaxLength(512);

        }
    }
}
